package com.shujia.day19.mysql.pool;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateParseUtil {
    static SimpleDateFormat simpleDateFormat;
    static Date date;
    static {
        simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        date = new Date();
    }

    public static String parseTime(long time){
        date.setTime(time);
        return simpleDateFormat.format(date);
    }
}
